﻿<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:forEach items="${tickets }" var="ticket" >
			<div class="ticket">
				<table>
					<tr>
						<td rowspan="5">
							<img src= "/resources/img/1111.png" align="left" />
						</td>
					</tr>
					<tr>
						<td colspan="4" class="ticketName">${ticket.id }</td>
					</tr>
					<tr>
						<td>가격</td>
						<td colspan="3" class="price">${ticket.price }</td>
					</tr>
					<tr>
						<td>할인가</td>
						<td colspan="3" class="discountPrice">3000</td>
					</tr>
					<tr>
						<td>남은시간</td>
						<td class="day">${ticket.deadline }</td>
					</tr>
					<tr>
						<td colspan="2">
							<div class="ticketNumBox">
								<div class="numBox"></div>
							</div>
						</td>
						<td id="state"  colspan="2">[할인미정]</td>
						<!-- 할인 시 [할인확정]으로 변경 -->
					</tr>
					<tr>
						<td class="discountNumber" colspan=2>${sight.image_url }이상 구매시 할인</td>
						<td colspan=3  rowspan=2>
							<a href="ticketInfo?id=${ticket.sight_id}&ticket_id=${ticket.id}">
								<button class ="button white medium bigrounded" class="infoBtn">
														자세히보기
								</button>
							</a>
						</td>
					</tr>
					<tr>
						<td class="current">50</td>
						<td class="ticketTotal"> / 500</td>
					</tr>
				</table>
			</div>
			</c:forEach>
		</div>